import json

# 被过滤的标签
bgl = [56,57,58,59,61,62,63,64,65,66,67,68,69,70]

with open('123.json') as f:
    json01 = json.loads(f.read())
    print(type(json01))

for i in json01["hits"]["hits"]:
    try:
        for y in i["_source"]["resource_tag"]:
            if y in bgl:
                print(y)
    except TypeError:
        print(f'{i["_id"]}没有返回resource_tag')